﻿@using NOSDC.Services.Extensions
@model NOSDC.Models.RecentJobs

<div id="recentJobs">
    <div class="newsPosting">
        <div>
            <div class="leftIcon"></div>
            <div class="upcomingEvents">
                <div class="newsTitle">
                    Recent Job Postings
                </div>
            </div>
        </div>
        <div class="rightIcon"></div>
    </div>
    @if(Model.Jobs.Any())
    {
        <div style="padding-left:10px;">
        @foreach (var j in Model.Jobs)
        {
            <div style="padding-bottom:3px;"> 
                @Html.ActionLink(j.Employer, "Details", "Jobs", new { JobID = j.Id,  Title = j.Title.ToSeoUrl() }, null)
            </div>
        }
        </div>
    }
    else
    {
        <div style="text-align:center; font-weight:bold; color:#444;">There are no recent job postings.</div>
    }
</div>